package com.atguigu.ssyx.acl.mapper;

import com.atguigu.ssyx.model.acl.AdminRole;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author 杨林
 * @create 2023-07-10 17:49 星期一
 * description:
 */
@Repository
public interface AdminRoleMapper extends BaseMapper<AdminRole> {
    /**
     * 根据adminId删除
     * @param adminId
     */
    void deleteByAdminId(@Param("adminId") Long adminId);

    /**
     * 批量添加
     * @param adminRoles
     */
    void batchInset(@Param("adminRoles") List<AdminRole> adminRoles);
}
